yes,1em]
\setupinterlinespace
[line=2\bodyfontsize,
height=0.9,
depth=0.1]
\setupruby
[style={\switchtobodyfont[6pt]}]
\setuppagenumbering
[alternative=doublesided,
location=none]
\setuphead
[title,subject]
[align=middle]
\startsetups [header:rightpage]
\startframed
mily[JapaneseFont][ss][Noto Serif JP]
> >>[ it={style:regular,features:{*,slanted}},
> >>sl={style:regular,features:{*,slanted}},
> >>bi={style:bold,features:{*,slanted}},force=yes]
> >>
> >> \definefontfamily[JapaneseFont][tt][Noto Serif JP]
P]
> >> [ it={style:regular,features:{*,slanted}},
> >> sl={style:regular,features:{*,slanted}},
> >> bi={style:bold,features:{*,slanted}},force=yes]
> >>
> >> \definefontfamily[JapaneseFont][math][Tex Gyre Termes Math]
> >> %\definefont
={style:bold,features:{*,slanted}},force=yes]
\definefontfamily[JapaneseFont][math][Tex Gyre Termes Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Pagella Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Aventor]
\setupbodyfont[JapaneseFont,12pt]
\setupruby[location=top,voffset=-2ex
[JapaneseFont,12pt]
\setupruby[location=top,voffset=-2ex]
\setupwhitespace[big]
\setscript[nihongo]
\starttext
\ruby{早}{はや}く。
いきましょう。
\stoptext
Best regards: Otared
Thanks all contributors, I added this to
https://wiki.contextgarden.net/Chinese_Japanese_and_Korean
I guess you also should set
,features:{*,slanted}},force=yes]
\definefontfamily[JapaneseFont][math][Tex Gyre Termes Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Pagella Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Aventor]
\setupbodyfont[JapaneseFont,12pt]
\setupruby[location=top,voffset=-2ex
]
\setupbodyfont[JapaneseFont,14pt]
\setupruby[location=top,voffset=-1.6ex]
\setupwhitespace[big]
\starttext
\ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。
お\ruby{休}{やす}みなさい^_^
\stoptext
%end simple-japanese.tex
Best regards: Otared
> On 26 Feb 2024, at 21:32, Emanuel Han via ntg-context
>
\definefontfamily [JapaneseFont] [rm] [hiraginominchopro]
\setupruby[location=top,voffset=-1.6ex, ]
\starttext \JapaneseFont
\ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。
お\ruby{休}{やす}みなさい^_^
\stoptext
On Feb. 26 2024, at 9:08 pm, Otared Kavian wrote:
> Hi all,
>
> Does anyone have a simple setup of fonts
[mschinese,20pt]
\definefont[pinyinfont][name:ahpinying*default at 9pt]
\setupruby[color=darkgray, style=\pinyinfont]
\starttext
\ruby{寖備}{jìn bèi} \ss \ruby{寖備}{jìn bèi} % \tt \ruby{寖備}{jìn bèi}
\stoptext
%%%end example
ruby errors out as follows(that's why I didn't succeed with ruby before
[mschinese,20pt]
\definefont[pinyinfont][name:ahpinying*default at 9pt]
\setupruby[color=darkgray, style=\pinyinfont]
\starttext
\ruby{寖備}{jìn bèi} \ss \ruby{寖備}{jìn bèi} % \tt \ruby{寖備}{jìn bèi}
\stoptext
%%%end example
ruby errors out as follows(that's why I didn't succeed with ruby before
has support for it.
As can be seen in my previous example you can use the style-key to
switch to a different font
for the annotation (e.g. \setupruby[style=\pinyinfont]).
begin example
\definefallbackfamily [documentfont] [rm] [Noto Serif CJK SC]
[preset=range:chinese]
\definefallbackfam
them:
> >
> > begin example
> > \setupinterlinespace[line=4ex]
> >
> > \setuptype[style=\ttx]
> >
> > \starttext
> >
> > \start
> > x \ruby{aaa}{bbb} x
> > \stop
> >
> > \start \setupruby[location=left]
arttext
>
> \start
> xxxxx \ruby{aaa}{bbb} x
> \stop
>
> \start \setupruby[location=left]
> \type{\setupruby[location=left]}\quad x \ruby{aaa}{bbb} x
> \stop
>
> \start \setupruby[location=right]
> \type{\setupruby[location=right]}\quad xxx
x \ruby{aaa}{bbb} x
\stop
\start \setupruby[location=left]
\type{\setupruby[location=left]}\quad x \ruby{aaa}{bbb} x
\stop
\start \setupruby[location=right]
\type{\setupruby[location=right]}\quad x \ruby{aaa}{bbb} x
\stop
\start \setupruby[location
\dorecurse{20}{\ruby[spread]{XYZ}{fooledbar} }\par
\dorecurse{20}{\ruby{extremely}{wide} }\par
\dorecurse{20}{\ruby{wide}{extremely} }\par
stopbuffer
\testfeatureonce{1}{\start \setupinterlinespace[16pt]
\setupruby[location=none] \getbuffer \stop \page}
\testfeatureonce
> Am 2019-09-30 um 19:37 schrieb Wolfgang Schuster
> :
>
> Jeroen schrieb am 30.09.2019 um 02:18:
>> Many thanks. Is there also a simple way to place a 2 above the = character
>> as the definition does.
> The sample ways are:
>
> \starttext
>
> \setupr
Jeroen schrieb am 30.09.2019 um 02:18:
Many thanks. Is there also a simple way to place a 2 above the =
character as the definition does.
The sample ways are:
\starttext
\setupruby[style=]
= \ruby{=}{*}
\blank
= \framed[location=bottom,align=middle,frame=off,offset=0pt]{*\\=}
\stoptext
;},
command=\InterlinearText]
\setupinterlinespace[line=8ex]
\setupruby[voffset=-3ex]
\starttext
\definedfont[file:arial*arabic at 16 pt]
\processdatabasebuffer[interlineartext][sample]
\stoptext
Probably something with your font/alignment switching.
\usemodule [database]
\startbuffer[sample]
"
tupalign[r2l]\definedfont[file:arial*arabic at 16 pt]
\ruby{{\setupalign[r2l]#1}}{\setupalign[l2r]\definedfont[name:arial at
10pt]#2}}
\definedatabase
[interlineartext]
[quotechar={"},
command=\InterlinearText]
\setupinterlinespace[line=8ex]
\setupruby[voffset=-3ex]
\starttex
t]
\ruby{{\setupalign[r2l]#1}}{\setupalign[l2r]\definedfont[name:arial at
10pt]#2}}
\definedatabase
[interlineartext]
[quotechar={"},
command=\InterlinearText]
\setupinterlinespace[line=8ex]
\setupruby[voffset=-3ex]
\starttext
\definedfont[file:arial*arabic at 16 pt]
\processdatabas
t;
> "erwachte,","woke up,"
> "fand","found"
> "er","he"
> "sich","himself"
> "in","in"
> "seinem","his"
> "Bett","bed"
> "zu",&q
quot;erwachte,","woke up,"
"fand","found"
"er","he"
"sich","himself"
"in","in"
"seinem","his"
"Bett","bed"
"zu","in"
"einem","
bar} }\par
\dorecurse{20}{\ruby[spread]{XYZ}{fooledbar} }\par
\dorecurse{20}{\ruby{extremely}{wide} }\par
\dorecurse{20}{\ruby{wide}{extremely} }\par
stopbuffer
\testfeatureonce{1}{\start \setupinterlinespace[16pt]
\setupruby[location=none] \getbuffer \
\setupinterlinespace[16pt]
\setupruby[location=none] \getbuffer \stop \page}
\testfeatureonce{1}{\start \setupinterlinespace[16pt]
\setupruby[location=right] \getbuffer \stop \page}
\testfeatureonce{1}{\start \setupinterlinespace[28pt]
\setupruby[align=auto,color
l}{Bm} \ruby[song]{bless}{Em}\ruby[song]{ings}{D}
> \ruby[song]{flow}{G};
>
> \start
>
> \setupruby[style=\ss\it,align=flushleft]
>
> \ruby{Praise}{G} Him, all \ruby{crea}{D}\ruby{tures}{Em} \ruby{here}{C}
> \ruby{be}{G}\ruby{low}{D};
>
> \stop
>
> \stoptex
\defineruby[song][style=\ss\it,align=flushleft]
\setupinterlinespace[line=5ex]
\starttext
\ruby[song]{Praise}{G} God, \ruby[song]{from}{D} \ruby[song]{Whom}{Em}
\ruby[song]{all}{Bm} \ruby[song]{bless}{Em}\ruby[song]{ings}{D}
\ruby[song]{flow}{G};
\start
\setupruby[style=\ss\it,align
\usemodule[ruby]
\setupruby[overhang=start]
\starttext
foo \ruby{bar}{foo bar baz} baz
\stoptext
end,yes,auto all give overhang=none. Am I doing something wrong?
Severin
___
If your question is of interest to others
Am 04.03.2012 um 15:43 schrieb S Barmeier:
\usemodule[ruby]
\setupruby[overhang=start]
\starttext
foo \ruby{bar}{foo bar baz} baz
\stoptext
end,yes,auto all give overhang=none. Am I doing something wrong?
You need also “align=center” because by default the base text is stretched
a words you can use the ruby module, here is a example:
\usemodule[ruby]
\setupruby[align=center]
\starttext
THIS IS \ruby{TITANIC}{MAYDAY MAYDAY MAYDAY} TITANIC TITANIC
\stoptext
Wolfgang
___
If your question
\usemodule[ruby]
\setupruby[align=center]
\starttext
THIS IS \ruby{TITANIC}{MAYDAY MAYDAY MAYDAY} TITANIC TITANIC
\stoptext
The example does not work here. Will i have to install ruby manual on debian
testing?
I could not find information about the ruby module
--
Jonas Stein n
On Fri, 19 Nov 2010, Jonas Stein wrote:
\usemodule[ruby]
\setupruby[align=center]
\starttext
THIS IS \ruby{TITANIC}{MAYDAY MAYDAY MAYDAY} TITANIC TITANIC
\stoptext
The example does not work here. Will i have to install ruby manual on debian
testing?
I could not find information about
On Thu, 18 Nov 2010, Aditya Mahajan wrote:
On Fri, 19 Nov 2010, Jonas Stein wrote:
\usemodule[ruby]
\setupruby[align=center]
\starttext
THIS IS \ruby{TITANIC}{MAYDAY MAYDAY MAYDAY} TITANIC TITANIC
\stoptext
The example does not work here. Will i have to install ruby manual on
debian
for children, the pinyin always show above the Chinese
like the picture I upload.
A solution like can be easy integrated in a ruby command because
you need only a command parameter for the ruby text,
e.g. \setupruby[command=\pinyin] but you're looking for something
like the translate module
upload.
A solution like can be easy integrated in a ruby command because
you need only a command parameter for the ruby text,
e.g. \setupruby[command=\pinyin] but you're looking for something
like the translate module.
To make it show correctly is an good start, but if there are some
tools
Schuster,
%D date=\currentdate,
%D copyright=Wolfgang Schuster]
\writestatus{loading}{Context User Module / Japanese}
\unprotect
%D Systemvariable
\def\rb{rb} % RuBy
%D Setup for rubyenvironment
\def\setupruby%
{\dosingleempty\dosetupruby}
\def\dosetupruby[#1
35 matches
Mail list logo